package com.design.singleton;

/**
 * 饿汉模式（线程安全）
 * @author ytj
 * @date 2024/11/27 15:34
 */
public class Singleton3 {
    private static Singleton3 singleton3=new Singleton3();

    private Singleton3(){}

    public static Singleton3 getSingleton3(){
        return singleton3;
    }
}
